package com.itcast.innerclass.Demo02;

/*
要写注释哦!!!
*/
public class People {
    private String name;
    private String gender;

    public People() {
        heat heat = new heat();
        heat.beat();
    }

    public People(String name, String gender) {
        this.name = name;
        this.gender = gender;
        heat heat = new heat();
        heat.beat();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
    class heat{
        public void beat(){
            System.out.println(name+"的心脏在跳动！！");
        }
    }
}
